package com.csk.zsk.compents.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.csk.zsk.commons.dao.impl.BaseHibernateDao;
import com.csk.zsk.compents.dao.MusicWeeklyDao;
import com.csk.zsk.compents.entity.MusicWeekly;

@Repository
public class MusicWeeklyDaoImpl extends BaseHibernateDao<MusicWeekly, String> implements MusicWeeklyDao {

	@Override
	@SuppressWarnings("unchecked")
	public List<MusicWeekly> getMusicWeeklyByNum(Integer num) {
		return createQuery("from MusicWeekly").setMaxResults(num).list();
	}

}
